<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="oastaglib" prefix="oas"%>
<html>
<head>
    <title>Online Attendance System</title>
    <link rel="stylesheet" type="text/css" href="<c:url value="/resources/bootstrap/dist/css/bootstrap.min.css" /> ">
    <script type="text/javascript" src="<c:url value="/resources/js/jquery/dist/jquery.min.js"/>"></script>
    <script type="text/javascript" src="<c:url value="/resources/bootstrap/dist/js/bootstrap.min.js"/>"></script>
</head>
<body style="background-color:#eeeeee">
<oas:nav></oas:nav>
<oas:content>
<div style="background-color:#ffffff; width:90%; margin:0 auto; padding:15px 10px;">
<h1>用户请假页面</h1>
<form method="POST">
	<label>请假原因</label>
	<select name="reason">
	<c:forEach items="${list}" var="leaveType">
			<option value="${leaveType.id}">${leaveType.description}</option>
		</c:forEach>
	</select>
	<br/>
    <input type="submit" value="提交"/>
</form>
 <a href="<c:url value="/leave/history" />">查看历史请假记录</a> 	
 <a href="<c:url value="/" />">返回</a>
 </div>
 </oas:content>
 <oas:footer></oas:footer> 
</body>
</html>